package com.lagou.sqlSession;

import com.lagou.pojo.Configuration;
import com.lagou.pojo.MappedStatement;

import java.util.List;

public interface Executor {

    public <E> List<E> query(Configuration configuration, MappedStatement mappedStatement,Object... params) throws ClassNotFoundException, IllegalAccessException, NoSuchFieldException, Exception;
    public <T> T insert(Configuration configuration, MappedStatement mappedStatement,Object... params) throws ClassNotFoundException, IllegalAccessException, NoSuchFieldException, Exception;
    public <T> T update(Configuration configuration, MappedStatement mappedStatement,Object... params) throws ClassNotFoundException, IllegalAccessException, NoSuchFieldException, Exception;
    public <T> T delete(Configuration configuration, MappedStatement mappedStatement,Object... params) throws ClassNotFoundException, IllegalAccessException, NoSuchFieldException, Exception;
}
